package cn.bluarry.broadcast2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        button=(Button) findViewById(R.id.stand);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent("cn.bluarry.broadcast2.TEST_BROADCAST");
                sendBroadcast(intent);
                Log.d("MainActivity:","send cn.bluarry.broadcast2.TEST_BROADCAST");
            }
        });
    }
}
